package com.kirayous.gulimall.product.feign;

import com.kirayous.common.to.es.SkuEsModel;
import com.kirayous.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author KiraYous
 * @version V1.0
 * @Package com.kirayous.gulimall.product.feign
 * @date 2022/3/18 21:14
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
